from django.conf.urls.defaults import *

urlpatterns = patterns('omstang.cashflow.views',
    url(r'^$', 'OverviewView', name="overview"),
    #url(r'^account/', include('omstang.cashflow.account.urls')),
    url(r'^account/$', 'AccountView', name="account"),
    url(r'^account/add/$', 'AccountAdd', name="account-add"),   
    url(r'^account/edit/(?P<id>.*)/$', 'AccountEdit', name="account-edit"),
    url(r'^account/delete/(?P<id>.*)/$', 'AccountDelete', name="account-delete"),     
    #url(r'^category/', include('omstang.cashflow.category.urls')),
    url(r'^category/$', 'CategoryView', name="category"),
    url(r'^category/add/$', 'CategoryAdd', name="category-add"),    
    url(r'^category/edit/(?P<id>.*)/$', 'CategoryEdit', name="category-edit"),
    url(r'^category/delete/(?P<id>.*)/$', 'CategoryDelete', name="category-delete"),
    #url(r'^transaction/', include('omstang.cashflow.transaction.urls')),
    url(r'^transaction/$', 'TransactionView', name="transaction"),
    url(r'^transaction/add/$', 'TransactionAdd', name="transaction-add"),
    url(r'^transaction/account/(?P<aid>.*)/$', 'TransactionView', name="transaction-by-account"),
    url(r'^transaction/category/(?P<cid>.*)/$', 'TransactionView', name="transaction-by-category"),
    url(r'^transaction/both/(?P<aid>.*)/(?P<cid>.*)/$', 'TransactionView', name="transaction-by-account-category"),
    #url(r'^bill/', include('omstang.cashflow.bill.urls')),
    url(r'^bill/$', 'BillView', name="bill"),  
    url(r'^bill/add/$', 'BillAdd', name="bill-add"),  
    url(r'^bill/pay/$', 'BillPay', name="bill-pay"), 
    url(r'^bill/manage/$', 'BillManage', name="bill"),
    url(r'^bill/balance/$', 'BillViewBalance', name="bill"),   
    #url(r'^planning/', include('omstang.cashflow.planning.urls')),
    url(r'^planning/budget/$', 'BudgetView', name="budget"),  
    url(r'^planning/budget/add/$', 'BudgetAdd', name="budget-add"),

    
    url(r'^flow/$', 'OverviewView', name="flow"),  
    url(r'^planning/$', 'OverviewView', name="planning"),      
    url(r'^investments/$', 'OverviewView', name="investments"),  
    url(r'^asset/$', 'OverviewView', name="asset"),  
    url(r'^business/$', 'OverviewView', name="business"),  
    url(r'^suggest/$', 'OverviewView', name="suggest"),  

    url(r'^operation/move/(?P<name>.*)/$', 'move_money', name="cashflow-move-money"),
)
